<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="ElementUI/index.css">
    <style>
        .el-header, .el-footer {
            background-color: #B3C0D1;
            color: #333;
            text-align: right;
            /*line-height: 60px;*/
        }

        .el-aside {
            background-color: #D3DCE6;
            color: #333;
            text-align: center;
            /*line-height: 200px;*/
        }

        .el-main {
            background-color: #E9EEF3;
            color: #333;
            text-align: center;
            /*line-height: 160px;*/
        }

        body > .el-container {
            margin-bottom: 40px;
        }

        .el-container:nth-child(5) .el-aside,
        .el-container:nth-child(6) .el-aside {
            line-height: 260px;
        }

        .el-container:nth-child(7) .el-aside {
            line-height: 320px;
        }
    </style>

</head>
<body>
<!--https://docs.emmet.io/cheat-sheet/-->
<div id="app">
    <el-container>
        <el-header>

            <el-dropdown>
              <span class="el-dropdown-link">
                个人中心<i class="el-icon-arrow-down el-icon--right"></i>
              </span>
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item>修改密码</el-dropdown-item>
                    <el-dropdown-item>退出</el-dropdown-item>
                    <el-dropdown-item>个人信息</el-dropdown-item>
                </el-dropdown-menu>
            </el-dropdown>

        </el-header>
        <el-container>
            <el-aside width="200px">

                <el-menu
                        default-active="2"
                        class="el-menu-vertical-demo"
                        background-color="#545c64"
                        text-color="#fff"
                        active-text-color="#ffd04b">
                    <el-submenu index="1">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>导航一</span>
                        </template>
                        <el-menu-item index="1-1">
                            <a href="http://www.baidu.com" target="mainContent">百度</a>
                        </el-menu-item>
                        <el-menu-item index="1-2">选项2</el-menu-item>
                    </el-submenu>
                    <el-submenu index="2">
                        <template slot="title">
                            <i class="el-icon-location"></i>
                            <span>导航二</span>
                        </template>
                        <el-menu-item index="2-1">选项2</el-menu-item>
                        <el-submenu index="3">
                            <template slot="title">
                                <i class="el-icon-location"></i>
                                <span>导航二</span>
                            </template>
                            <el-menu-item index="3-1">选项2</el-menu-item>
                        </el-submenu>
                    </el-submenu>
                </el-menu>

            </el-aside>
            <el-main>

<!--                <iframe name="mainContent" width="100%" frameborder="0" src="http://www.sina.com"></iframe>-->

                <template>
                    <el-table :data="tableData" style="width: 100%">
                        <el-table-column prop="date" label="日期" width="180"> </el-table-column>
                        <el-table-column prop="name" label="姓名" width="180"> </el-table-column>
                        <el-table-column prop="address" label="地址"> </el-table-column>
                    </el-table>
<!--                    <template v-for="item in tableData">-->
<!--                        {{item.date}},{{item.name}},{{item.address}}-->
<!--                    </template>-->
                </template>

                <el-pagination
                        @current-change="handleCurrentChange"
                        :current-page="currentPage4"
                        :page-size="50"
                        layout="total, prev, pager, next, jumper"
                        :total="400000">
                </el-pagination>

            </el-main>
        </el-container>
    </el-container>
</div>

<script src="ElementUI/vue.js"></script>
<script src="ElementUI/index.js"></script>
<script>
  new Vue({
      el:"#app",
      // data(){ //es6
      //     return{
      //         name:""
      //     }
      // }
      methods:{
          handleCurrentChange(val){
              console.log(val);
          }
      },

      data:{
          currentPage4:1,
          name:"",
          tableData:[
              {
                  date: '2016-05-02',
                  name: '王小虎',
                  address: '上海市普陀区金沙江路 1518 弄'
              }, {
                  date: '2016-05-04',
                  name: '王小虎',
                  address: '上海市普陀区金沙江路 1517 弄'
              }, {
                  date: '2016-05-01',
                  name: '王小虎',
                  address: '上海市普陀区金沙江路 1519 弄'
              }, {
                  date: '2016-05-03',
                  name: '王小虎',
                  address: '上海市普陀区金沙江路 1516 弄'
              }
          ]
      }
  })

</script>
</body>
</html>
